package me.sdevil507.org.dto;

import lombok.Data;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdEntity;

import java.util.List;

@Data
public class OrgResourceRelDto extends BaseJpaSnowflakeIdEntity {


    /**
     * 父id
     */
    private Long parentId;

    /**
     * 排序
     */
    private Integer sortNum;

    /**
     * 是否显示
     */
    private Boolean moduleShow;

    /**
     * 是否可操作
     */
    private Boolean moduleAuth;

    /**
     * 资源编码
     */
    private String code;


    private String title;

    /**
     * 资源类型
     */
    private Integer type;

    /**
     * 资源分类
     */
    private Integer classify;

    /**
     * 服务分类
     */
    private Integer serviceClassify;

    /**
     * 路径
     */
    private String path;

    /**
     * 图标
     */
    private String iconSvg;

    /**
     * 标签
     */
    private String tags;

    /**
     * 描述
     */
    private String description;

    /**
     * 子资源
     */
    private List<OrgResourceRelDto> children;

    public OrgResourceRelDto() {
    }

    public OrgResourceRelDto(Boolean moduleShow, Boolean moduleAuth, Long id, Long parentId, String code, String title, Integer type, Integer classify,  Integer serviceClassify, String path, Integer sortNum, String iconSvg, String tags, String description) {
        this.moduleShow = moduleShow;
        this.moduleAuth = moduleAuth;
        this.id = id;
        this.parentId = parentId;
        this.code = code;
        this.title = title;
        this.type = type;
        this.classify = classify;
        this.serviceClassify = serviceClassify;
        this.path = path;
        this.sortNum = sortNum;
        this.iconSvg = iconSvg;
        this.tags = tags;
        this.description = description;
    }
}